<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">

    <title>添加后台地址</title>
    <base href= "<?php echo base_url();?>">

    <!-- Bootstrap core CSS -->
    <link href="./style/css/bootstrap.min.css" rel="stylesheet">
    <!--<link href="bootstrap.min.css" rel="stylesheet">-->

    <!-- Custom styles for this template -->

    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <![endif]-->
    <!--[if lt IE 9]>
    <script src="./style/js/respond.min.js"></script>
    <script src="./style/js/html5shiv.min.js"></script>
    <![endif]-->
    <style type="text/css">
        body{
            padding-top: 50px;
        }
        .sidebar{
            display: none;
        }
        /*@media (min-width: 768px) {*/
        /*.sidebar {*/
        /*position: fixed;*/
        /*top: 51px;*/
        /*bottom: 0;*/
        /*left: 0;*/
        /*z-index: 1000;*/
        /*display: block;*/
        /*padding: 20px;*/
        /*overflow-x: hidden;*/
        /*overflow-y: auto; !* Scrollable contents if viewport is shorter than content. *!*/
        /*background-color: #f5f5f5;*/
        /*border-right: 1px solid #eee;*/
        /*}*/
        /*}*/
        @media (min-width: 768px){
            .sidebar{
                position: fixed;
                top: 51px;
                bottom: 0px;
                left: 0px;
                z-index: 1000;
                display: block;
                padding: 20px;
                overflow-x: hidden;
                overflow-y: auto;
                background-color: #f5f5f5;
                border-right: 1px solid #eee;
                /*border: 1px solid red;*/
            }
        }
        .nav-sidebar{
            margin-right: -21px;
            margin-bottom: 20px;
            margin-left: -20px;
        }
        .nav-sidebar > li > a{
            padding-right: 20px;
            padding-left: 20px;
        }
        .nav-sidebar > .active > a,
        .nav-sidebar > .active > a:hover,
        .nav-sidebar > .active > a:focus{
            color: #fff;
            background-color: #428bca;
        }
        .my-account li{
            padding-top: 0px;
            padding-bottom: 0px;
            text-align: center;
        }
        .my-account li a{
            font-size: 20px;
        }
        input:focus{
            background-color: #faf2cc;
        }
    </style>
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container-fluid">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">下拉菜单</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="./home.html">主页</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav navbar-right">
                <li>
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">我的 <span class="caret"></span></a>
                    <ul class="my-account dropdown-menu">
                        <li><?php echo $email;?></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="./account/password.html">修改密码</a></li>
                        <li><a href="./login/logout.html">注销</a></li>
                    </ul>
                </li>
                <li><a href="./help.html">帮助</a></li>
            </ul>
        </div>
    </div>
</nav>
<div class="container-fluid">
    <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
            <ul class="nav nav-sidebar">
                <li><a href="./home.html">开始监控</a></li>
                <li><a href="./template/create.html">新建8583模板</a></li>
                <li class="active"><a href="./address/create.html">添加后台地址</a></li>
            </ul>
        </div>
        <div class="col-lg-10 col-lg-offset-2 col-sm-9 col-sm-offset-3">
            <h1 class="main-title text-center">添加后台地址</h1>

            <div class="main-form" style="margin-top: 30px">
                <form action="./address/create_result.html" method="post">
                    <div class="main-name-box col-lg-4 col-lg-offset-4" style=" padding:20px 60px;">
                        <input class="main-name form-control" type="text" placeholder="项目名称" required autofocus name="project_name">
                    </div>
                    <div class="main-address-box col-lg-6 col-lg-offset-3" style="text-align: center;padding: 20px 0;margin-top:20px;" >
                        <div class="form-inline">
                            <div class="form-group">
                                <div class="input-group">
                                    <div class="input-group-addon">IP</div>
                                    <input type="text" class="main-address-ip form-control"  placeholder="0.0.0.0" name="ip" required>
                                    <div class="main-address-port input-group-addon" >端口</div>
                                    <input type="text" class="form-control"  placeholder="9999" name="port" required>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="main-error-report col-lg-6 col-lg-offset-3 text-center">
                        <?php echo form_error('ip', '<p class="text-danger">', '</p>');?>
                        <?php echo form_error('port', '<p class="text-danger">', '</p>');?>
                    </div>
                    <div class="col-lg-2 col-lg-offset-5" style="text-align: center;padding: 20px 0;">
                        <button class="main-add-btn btn btn-success">添加</button>
                    </div>
                </form>
            </div>
        </div>

        </div>

    </div>

</div>
</body>
<!-- Bootstrap core JavaScript
   ================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="./style/js/jquery-1.12.3.js"></script>
<script src="./style/js/bootstrap.min.js"></script>
<script src="./style/js/modal.js"></script>
<!-- Just to make our placeholder images work. Don't actually copy the next line! -->
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
</html>